package com.jcrj.action;

import com.opensymphony.xwork2.ActionSupport;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

public class BaseAction extends ActionSupport implements ServletRequestAware, ServletResponseAware, SessionAware {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5256066834562178565L;
	private HttpServletRequest request;
	private HttpServletResponse response;
	private Map<String, Object> session;
	private int currentPage;
	private String requestId;
	private String status;
	private String foreign;
	private String title;
	private String startDate;
	private String endDate;
	private String template;
	private String editType;
	private String fwzh;

	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}

	public void setServletResponse(HttpServletResponse response) {
		this.response = response;
	}

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	public HttpServletRequest getRequest() {
		return this.request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public HttpServletResponse getResponse() {
		return this.response;
	}

	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}

	public Map<String, Object> getSession() {
		return this.session;
	}

	public String initHr() {
		return "success";
	}

	public int getCurrentPage() {
		return this.currentPage == 0 ? 1 : this.currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getForeign() {
		return this.foreign;
	}

	public void setForeign(String foreign) {
		this.foreign = foreign;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getStartDate() {
		return this.startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return this.endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getTemplate() {
		return this.template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public String getEditType() {
		return this.editType;
	}

	public void setEditType(String editType) {
		this.editType = editType;
	}

	public String getFwzh() {
		return this.fwzh;
	}

	public void setFwzh(String fwzh) {
		this.fwzh = fwzh;
	}
}